import { defHttp } from '/@/utils/http/axios';

enum Api {
  loginfo = '/sys/loginfo',
  indexStatistic = '/statistic/goldouHirunStatistics/index-statistic',
  currentMonthStatistic = '/statistic/goldouHirunStatistics/current-month-statistic',
  dormStatistic = '/statistic/goldouHirunStatistics/dorm-statistic',
}

/**
 * 获取首页整体统计数据
 * @param params
 */
export const getIndexStatistic = (params) => defHttp.get({ url: Api.indexStatistic, params }, { isTransformResponse: false });

/**
 * 获取当月统计数据
 * @param params
 */
export const getCurrentMonthStatistic = (params) => defHttp.get({ url: Api.currentMonthStatistic, params }, { isTransformResponse: false });
